package com.vdg.fps.data;

import java.io.Serializable;
import java.util.List;

public class GroupsData implements Serializable {
	private String mName;
	private String mID;
	private String mUnRead;
	private String mLikes;
	private boolean mCanPost;
	private String mCategory;

	public String getName() {
		return mName;
	}

	public void setName(String mName) {
		this.mName = mName;
	}

	public String getID() {
		return mID;
	}

	public void setID(String mID) {
		this.mID = mID;
	}

	public String getUnRead() {
		return mUnRead;
	}

	public void setUnRead(String mUnRead) {
		this.mUnRead = mUnRead;
	}

	public GroupsData(String id, String name, String unread) {
		this.mName = name;
		this.mID = id;
		this.mUnRead = unread;
	}
	public GroupsData(String id, String name) {
		this.mName = name;
		this.mID = id;
	}

	public GroupsData(String id, String name, boolean canpost,
			String likes, String category) {
		this.mName = name;
		this.mID = id;
		this.mCanPost = canpost;
		this.mLikes = likes;
		this.mCategory = category;
	}

	public String toString() {
		return mName + "|" + mID;
	}

	public static String toString(List<GroupsData> datas) {
		String result = "";
		if (datas == null || datas.size() == 0) {
		} else {
			for (GroupsData data : datas) {
				result = data.toString() + "\n" + result;
			}
		}
		if (result.contains("\n")) {
			result = result.substring(0, result.length() - 1);
		}
		return result;
	}

	public String getLikes() {
		return mLikes;
	}

	public void setLikes(String mLikes) {
		this.mLikes = mLikes;
	}

	public boolean isCanPost() {
		return mCanPost;
	}

	public void setCanPost(boolean mCanPost) {
		this.mCanPost = mCanPost;
	}

	public String getCategory() {
		return mCategory;
	}

	public void setCategory(String mCategory) {
		this.mCategory = mCategory;
	}
}
